package org.alanlau.hystrix.annotation;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * Feign回退
 *
 * @author liukun
 * @version 1.0
 * @date 2020/9/17 11:40
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
@ConditionalOnProperty(prefix = "feign.hystrix", value = "enabled", havingValue = "true")
public @interface FeignFallback {
}
